<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8"/>
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
		<meta name="HandheldFriendly" content="true"/>
		<meta name="MobileOptimized" content="320"/>
		<title>Hy-M6-Demo</title>	
		<script type="text/javascript" src="js/common.js"></script>
		<script type="text/javascript" src="js/HyFun.js"></script>
		<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8"/>
	</head>
	<body>
		<br/>
		<div class="button" onclick="startDiscovery()">开始搜索蓝牙设备</div>
		设备：<input id="deivce" type="text" disabled="disabled" value="蓝牙名称需以“CW*”或“J*”开头"></input>
		<a href="#" onclick="selectDevice()">选择设备</a>
		<div class="button" onclick="connectDevice()" >连接蓝牙设备</div>
		<hr/>
		<br/>
		<input id="CardNo" type="text" disabled="disabled" ></input>
		<div class="button" onclick="funselect('idc')">读取身份证信息</div>
		<div class="button" onclick="funselect('icc')">读取ic卡信息</div>
		<div class="button" onclick="funselect('rfc')">读取非接卡信息</div>
		<div class="button" onclick="funselect('ver')">读取固件版本信息</div>
		<div class="button" onclick="closeBluetooth()">关闭蓝牙模块</div>
		<div id="outpos"/ >
		<div id="output" style="height: 15%;">
		用于测试Cashway公司M6背夹功能，此处为调试日志，请滑动浏览。
		</div>
	</body>
</html>